package com.easonji.attendance.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 补卡
 * </p>
 *
 * @author easonji
 * @since 2018-10-05
 */

@TableName("att_record")

public class Record extends Model<Record> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "re_id", type = IdType.AUTO)
    private Integer reId;

    @NotEmpty(message = "补卡时间不能为空")
    @TableField("re_date")
    private String reDate;

    @TableField("re_user")
    private Integer reUser;

    @TableField("re_state")
    private Integer reState;

    @NotEmpty(message = "补卡原因不能为空")
    @TableField("re_memo")
    private String reMemo;

    @TableField("re_create_user")
    private Integer reCreateUser;

    @TableField("re_create_date")
    private Date reCreateDate;

    @TableField("re_update_user")
    private Integer reUpdateUser;

    @TableField("re_update_date")
    private Date reUpdateDate;

    @TableField("re_next_auditor")
    private Integer reNextAuditor;

    public Integer getReId() {
        return reId;
    }

    public void setReId(Integer reId) {
        this.reId = reId;
    }
    public String getReDate() {
        return reDate;
    }

    public void setReDate(String reDate) {
        this.reDate = reDate;
    }
    public Integer getReUser() {
        return reUser;
    }

    public void setReUser(Integer reUser) {
        this.reUser = reUser;
    }
    public Integer getReState() {
        return reState;
    }

    public void setReState(Integer reState) {
        this.reState = reState;
    }
    public String getReMemo() {
        return reMemo;
    }

    public void setReMemo(String reMemo) {
        this.reMemo = reMemo;
    }
    public Integer getReCreateUser() {
        return reCreateUser;
    }

    public void setReCreateUser(Integer reCreateUser) {
        this.reCreateUser = reCreateUser;
    }
    public Date getReCreateDate() {
        return reCreateDate;
    }

    public void setReCreateDate(Date reCreateDate) {
        this.reCreateDate = reCreateDate;
    }
    public Integer getReUpdateUser() {
        return reUpdateUser;
    }

    public void setReUpdateUser(Integer reUpdateUser) {
        this.reUpdateUser = reUpdateUser;
    }
    public Date getReUpdateDate() {
        return reUpdateDate;
    }

    public void setReUpdateDate(Date reUpdateDate) {
        this.reUpdateDate = reUpdateDate;
    }
    public Integer getReNextAuditor() {
        return reNextAuditor;
    }

    public void setReNextAuditor(Integer reNextAuditor) {
        this.reNextAuditor = reNextAuditor;
    }

    @Override
    protected Serializable pkVal() {
        return this.reId;
    }

    @Override
    public String toString() {
        return "Record{" +
        "reId=" + reId +
        ", reDate=" + reDate +
        ", reUser=" + reUser +
        ", reState=" + reState +
        ", reMemo=" + reMemo +
        ", reCreateUser=" + reCreateUser +
        ", reCreateDate=" + reCreateDate +
        ", reUpdateUser=" + reUpdateUser +
        ", reUpdateDate=" + reUpdateDate +
        ", reNextAuditor=" + reNextAuditor +
        "}";
    }
}
